<div class='contentheader'>
<?
echo sigi::actionbox_small('clientlogin', $model->id);

echo '<h1>';
echo html::anchor(CONTDIR.'clientlogin', 'Alle Clients');
echo ' / ';
echo $model->title;
echo '</h1>';
echo '</div>';
?>


<?
	
	$containers=ORM::factory('clientdata')->containers;
	
	foreach($containers as $container=>$cb){
		
		$datas=$model->where('category', $container)->clientdata;
		//if($datas->count()>0){
		
		
		echo '<div class="content_block">';
		echo sigi::addbox(array(array('title'=>'add Data', 'link'=>CONTDIR.'clientdata/form?parent_id='.$model->id.'&category='.$container)));
		echo '<h1>'.$cb.'</h1>';
		$model->reload();
		$subview=new View('clientdata/listall');	
		$subview->datas=$datas;
		echo $subview;
		echo '</div>';
		
		
		
	}
?>